import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false


//引入vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

//引入axios
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)

import VueLazyComponent from '@xunlei/vue-lazy-component'
Vue.use(VueLazyComponent)

//引入懒加载Lazyload
import { Lazyload } from 'vant';
Vue.use(Lazyload);
// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  lazyComponent: true,
});
//引入下拉刷新
import { PullRefresh } from 'vant';
Vue.use(PullRefresh);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
